// app.js
App({
  onLaunch(options) {
    console.log('APP-onLaunch');

   
  },

  wxRequestJson(url, data, succFuc, errFuc) {
    wx.request({
      url: url,
      data: data,
      method: 'POST',
      header: {
        'Content-type': 'application/json;charset=utf-8',
      },
      success: res => {
        succFuc(res.data);
      },
      fail: err => {
        errFuc(err);
      }
    })
  },

  wxRequest(url, data, succFuc, errFuc) {
    wx.request({
      url: url,
      data: data,
      method: 'POST',
      header: {
        'Content-type': 'application/x-www-form-urlencoded',
      },
      success: res => {
        succFuc(res.data);
      },
      fail: err => {
        errFuc(err);
      }
    })
  },

  globalData: {
    url: 'http://192.168.0.102:2036/',
    // url: 'http://www.ccclkj.cn:2036/',
    path: "https://xiuzheng-imgs.oss-cn-beijing.aliyuncs.com/",
    userId: 0,
    companyId:0,
  }
})